package com.android.launcher3;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.os.SystemClock;
import android.view.View;

public class WallpaperCanvasView extends View {
	private Rect mCanvasRect;
	private int mStatusBarHeight;
	private Workspace mWorkspace;

	public WallpaperCanvasView(Context paramContext) {
		super(paramContext);
		Rect localRect = new Rect();
		this.mCanvasRect = localRect;
		int i = paramContext.getResources().getDimensionPixelSize(
				com.android.internal.R.dimen.status_bar_height);
		this.mStatusBarHeight = i;
	}

	protected void onDraw(Canvas paramCanvas) {
		super.onDraw(paramCanvas);
		if (this.mWorkspace == null) {
			return;
		}

		long l1 = SystemClock.uptimeMillis();
		this.mCanvasRect.left = 0;
		this.mCanvasRect.top = 0;
		Rect localRect1 = this.mCanvasRect;
		int i = getWidth();
		localRect1.right = i;
		Rect localRect2 = this.mCanvasRect;
		int j = getHeight();
		localRect2.bottom = j;
		Activity localActivity = (Activity) getContext();
		int k = 0;
		if ((localActivity.getWindow().getAttributes().flags & 0x400) != 0)
			k = 1;
		if (k == 0) {
			Rect localRect3 = this.mCanvasRect;
			int m = localRect3.top;
			int n = this.mStatusBarHeight;
			int i1 = m - n;
			localRect3.top = i1;
		}
		Workspace localWorkspace = this.mWorkspace;
		Rect localRect4 = this.mCanvasRect;

		// localWorkspace.drawWallpaperImage(paramCanvas, localRect4);
		long l2 = SystemClock.uptimeMillis();
	}

	public void setWorkspace(Workspace paramWorkspace) {
		this.mWorkspace = paramWorkspace;
	}
}
